KeyListener = cc.EventListener.create({
	event: cc.EventListener.KEYBOARD,
	e_alt: false,
	target: null,
	onKeyPressed: function (key, event) {
		cc.log( "Key down:" + key);
		if(!!gg.keyListener.target){
			cc.log( "target is not null");	
		} else {
			cc.log( "target is null");
		}
		if(key == cc.KEY.alt){
			// 按下alt
			this.e_alt = true;
		} else if(key == cc.KEY.enter
			&& this.e_alt){
			// 按下alt且按下回车,进入全屏
			$.gotoFull();
			return false;
		} else if(key == cc.KEY.enter) {
			if(!!gg.keyListener.target){
				if(typeof gg.keyListener.target.enter == 'function'){
					gg.keyListener.target.enter();
				}
			}
		}
	},
	onKeyReleased: function (key, event) {
		cc.log( "Key up:" + key);
		if(key == cc.KEY.alt){
			this.e_alt = false;
		}
	}
});



